package com.hzlj.position.config.controller;


import com.fz.common.base.dto.ResultDTO;
import com.hzlj.position.config.common.dto.jzJbxxDeviceBindHistory.JzJbxxDeviceBindHistoryQueryParamDTO;
import com.hzlj.position.config.common.dto.jzJbxxDeviceBindHistory.JzJbxxDeviceBindHistoryQueryResultDTO;
import com.hzlj.position.config.service.JzJbxxDeviceBindHistoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 【设备绑定表-历史表】接口
 *
 * @author lifh
 * @date 2023-03-30 20:52:48
 */
@Slf4j
@RestController
@RequestMapping("/position/jz/jbxx/device/bind/history")
public class JzJbxxDeviceBindHistoryController {

    @Resource
    private JzJbxxDeviceBindHistoryService jzJbxxDeviceBindHistoryService;


    /**
     * 列表查询 设备绑定表
     *
     * @param dto 查询条件
     * @return 对象列表
     */
    @GetMapping("/list")
    public ResultDTO<List<JzJbxxDeviceBindHistoryQueryResultDTO>> listJzJbxxDeviceBindHistory(JzJbxxDeviceBindHistoryQueryParamDTO dto) {
        log.debug("【查询无分页列表】信息设备绑定表,JzJbxxDeviceBindHistoryQueryParamDTO={}", dto);
        return new ResultDTO<>(jzJbxxDeviceBindHistoryService.listJzJbxxDeviceBindHistory(dto));
    }

}

